package com.smedi.ismedi.organization.core.infrastructure.enumerate;

public enum HrOrganizationTypeEnum {
    COMPANY("COMPANY", "公司"),

    COMPANY_LEADER("COMPANY_LEADER", "公司领导"),

    COMPANY_MANAGEMENT_ORGANIZATION("COMPANY_MANAGEMENT_ORGANIZATION", "公司管理组织"),

    PROJECT_MANAGEMENT_ORGANIZATION("PROJECT_MANAGEMENT_ORGANIZATION", "项目管理组织"),

    SUBORDINATE_ORGANIZATION("SUBORDINATE_ORGANIZATION", "下级部门");

    private String name;

    private String value;

    HrOrganizationTypeEnum(String value, String name) {
        this.name = name;
        this.value = value;
    }

    public static String getName(String value) {
        for (HrOrganizationTypeEnum c : HrOrganizationTypeEnum.values()) {
            if (c.getValue().equals(value)) {
                return c.name;
            }
        }
        return null;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
